#include<stdio.h>
#include<stdlib.h>
#include<string.h>

int countInteger(FILE * fptr){

    if(NULL == fptr){

        printf("FILE fptr is NULL.\n");
        return 0;
    }
    int numInt = 0;
    int value = 0;
    while(fscanf(fptr,"%d ",&value)==1){

        numInt++;
    }
    return numInt;
}
